package first.group.ssh.packet.writer;

import java.math.BigInteger;
import java.nio.ByteBuffer;

public class BigIntegerWriter {
    public static void writeBigInteger(ByteBuffer buffer, BigInteger integer) {
        var arr = integer.toByteArray();
        buffer.putInt(arr.length);
        buffer.put(arr);
    }
}
